Skip to content

NotEmptyValidator

Base classes

Name Children Inherits
BlacklistValidator
prettyqt.validators.blacklistvalidator
Validator which excludes a fixed list of strings.

⋔ Inheritance diagram

graph TD
  2748031120["validators.NotEmptyValidator"]
  2005087004["validators.BlacklistValidator"]
  422589614["gui.Validator"]
  1804432572["gui.ValidatorMixin"]
  3227531497["core.ObjectMixin"]
  2751680898["builtins.object"]
  49520861["QtGui.QValidator"]
  3984060476["QtCore.QObject"]
  37984305["Shiboken.Object"]
  2005087004 --> 2748031120
  422589614 --> 2005087004
  1804432572 --> 422589614
  3227531497 --> 1804432572
  2751680898 --> 3227531497
  49520861 --> 422589614
  3984060476 --> 49520861
  37984305 --> 3984060476
  2751680898 --> 37984305

🛈 DocStrings

Bases: BlacklistValidator

Source code in prettyqt/validators/blacklistvalidator.py
class NotEmptyValidator(BlacklistValidator):
    ID = "not_empty"

    def __init__(self, parent: QtCore.QObject | None = None):
        super().__init__(parent=parent)
        self._options = [""]

:fa-brands-github: Show source on GitHub